﻿using UnityEngine;
using System.Collections;

public class EndGameMenu : MonoBehaviour {

	void OnGUI()
	{
		const int buttonWidth = 84;
		const int buttonHeight = 60;
		
		// Draw a button to start the game
		if (GUI.Button(new Rect(Screen.width / 2 - (buttonWidth / 2), (2 * Screen.height / 3) - (buttonHeight / 2),
			buttonWidth, buttonHeight), "Restart!"))
		{
			// On Click, load the first level.
			Application.LoadLevel("PrototipeScene");
		}
	}
}
